﻿using System.ServiceModel;
using EzDesk.Core.Model;
using System.Collections.Generic;

namespace EzDesk.Core.Interface
{
    [ServiceContract]
    public interface ICoreClientLoginService
    {
        #region [ Login Methods ]

        /// <summary>
        /// 客户端用户登录
        /// </summary>
        /// <param name="userName">登录用户名</param>
        /// <param name="password">登录密码</param>
        /// <returns>UserProfile 完整用户信息</returns>
        [OperationContract]
        UserProfile Login(string userName, string password);

        /// <summary>
        /// 通过一个客户端的登录输入，获取可用于登录的用户信息
        /// </summary>
        /// <param name="inputString">输入可以为不完整的姓名，拼音等</param>
        /// <returns>包括用户名，姓名，部门等等</returns>
        [OperationContract]
        IList<SimpleUser> GetUserNameForLogin(string inputString);

        #endregion
    }
}